var sticker = document.querySelector('#sticker');
console.log(sticker);
window.onscroll = function () {
    if (document.documentElement.scrollTop > 140) {
        sticker.style.top = '0';
    } if (document.documentElement.scrollTop < 140) {
        sticker.style.top = '-60px';
    }
};


var skills = document.querySelectorAll('#skills li');
console.log(skills);
function skillss() {
    for (let i = 0; i < skills.length; i++) {
        skills[i].style.right = '0';
    }
}


window.onload = function () {
    skillss();

};

var bodys = document.querySelector('body');
window.onresize = resizeBannerImage;//当窗口改变宽度时执行此函数
function resizeBannerImage() {
    var winW = $(window).width();
     if ($(window).width() < 850) {
        bodys.className = "respond";
    }else{
        bodys.className = "";
    }
}

